@import './variables.scss';
@import './custom.scss';

// 全局样式重置
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
  sans-serif;
  font-size: $font-size-md;
  color: $text-color;
  background-color: $background-color;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  width: 100%;
  height: 100%;
}

// 滚动条样式
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: $border-radius-max;

  &:hover {
    background-color: rgba(0, 0, 0, 0.3);
  }
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

// 链接样式
a {
  color: $primary-color;
  text-decoration: none;

  &:hover {
    opacity: 0.8;
  }
}

// 列表样式
ul,
ol {
  list-style: none;
}

// 图片样式
img {
  max-width: 100%;
  vertical-align: middle;
}

// 按钮样式
button {
  border: none;
  outline: none;
  cursor: pointer;
  background: transparent;
}

// 输入框样式
input,
textarea {
  outline: none;
  border: none;
  font-family: inherit;
}


//底部固定btn
.fixed-btn {
  width: 100%;
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #FFFFFF;
  height: 160rpx;
  padding-bottom: 20rpx;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px -3px 12px rgba(0, 0, 0, 0.06);
}/* 必选样式 */

.required {
  position: relative;
}

.required::before {
  left: 7rpx;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  content: "*";
  color: red;
  font-size: 20rpx;
}